<template>
	<view>
		<view class="text-area">
			<text>输入值：</text>
			<input type="text" style="color: red;" v-model="inputtext"/>
		</view>
		<view class="text-area">
			<text>回传值：</text>
			<input type="text"  style="color: yellow;" :value="huichuanzhi"/>
		</view>
		<A :intent="inputtext"></A>
		<!-- <view @click=""></view> -->
		<B @jiantingqi="callback"></B>
	</view>
</template>

<script>
	import A from '../../components/CompA.vue'
	import B from '../../components/CompB.vue'
	export default {
		components:{
			A,B
		},
		data() {
			return {
				inputtext:'sdf sf',
				huichuanzhi:""
			}
		},
		methods: {
			callback(message){
				console.log("IntentPage callback " + message);
				this.huichuanzhi = message
			}
		}
	}
</script>

<style>
.text-area {
		display: flex;
		align-items: center;
		height: 100rpx;
		padding-left: 50rpx;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
	input{
		background-color: #C0C0C0;
	}
</style>
